package com.health.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author sanchuan
 * @since 2023-04-22
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user")
@ApiModel(value = "User对象", description = "用户表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("序号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("账号")
    private String username;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("用户昵称")
    private String nickName;

    @ApiModelProperty("会员等级")
    private String level;

    @ApiModelProperty("地区")
    private String area;

    @ApiModelProperty("行业")
    private String trade;

    @ApiModelProperty("性别")
    private String gender;

    @ApiModelProperty("体重")
    private String weight;

    @ApiModelProperty("生日")
    private LocalDateTime birthday;

    @ApiModelProperty("身份证号")
    private String idCard;

    @ApiModelProperty("手机")
    private String phone;

    @ApiModelProperty("0 手机端 1电脑端")
    private String source;

    @ApiModelProperty("0 未锁定 1锁定")
    private Integer isLock;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("账户余额")
    private BigDecimal balance;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


    @ApiModelProperty("逻辑删除(0:未删除,1:删除)")
    @TableLogic
    private Integer isDeleted;
}
